package com.eclipse.youdaotranslation.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import com.eclipse.youdaotranslation.YouDaoTranslationActivator;
import com.eclipse.youdaotranslation.common.Constants;


/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

    /*
     * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
     */
    public void initializeDefaultPreferences() {
        IPreferenceStore store = YouDaoTranslationActivator.getDefault().getPreferenceStore();
        store.setDefault(Constants.KEY_YOUDAO_APP_KEY, Constants.KEY_YOUDAO_APP_SECRET);
    }
}